<template>
  <div>
    <van-card
      v-for="(v,i) in list"
      :key="i"
      :price="v.price.toFixed(2)"
      :desc="v.desc"
      :title="v.title"
      :thumb="v.url"
    />
  </div>
</template>


<script>
import axios from 'axios'
export default {
  created() {
    axios.get('/list').then(resp => {
      this.list = resp.data
    })
  },
  data() {
    return {
      list: []
    }
  }
}
</script>